import requests
from bs4 import BeautifulSoup

def get_video_url(page_url):
    response = requests.get(page_url)
    soup = BeautifulSoup(response.content, 'html.parser')

    # 查找视频标签
    video_tag = soup.find('video')
    if video_tag:
        video_url = video_tag.find('source')['src']
        return video_url
    return None

# 示例
page_url = 'https://jksu.yunxuetang.cn/kng/#/course/play?kngId=39d22624-2e97-4358-b9e6-c30f675bed32&projectId=&btid=&gwnlUrl=&locateshare=2986385a-079a-4616-8281-dd1e167a67c4'
video_url = get_video_url(page_url)
if video_url:
    print(f"找到视频URL: {video_url}")
else:
    print("未找到视频URL")
